package com.zp.base.entity.printPdfTemplate.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * pdf打印模板字典业务对象
 *
 * @author zhang peng
 * @ date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PrintPdfTemplateBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 模板类型
     */
    @NotBlank(message = "模板类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateType;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateName;

    /**
     * 模板名称代码
     */
    @NotBlank(message = "模板名称代码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateCode;

    /**
     * 模板文件存储路径
     */
    @NotBlank(message = "模板文件存储路径不能为空", groups = {AddGroup.class, EditGroup.class})
    private String filePath;

    /**
     * 模板下载url
     */
    private String fileUrl;

    /**
     * 备注
     */
    private String remark;

    /**
     * 机构id
     */
    private String orgId;


}
